package com.ruoyi.eqmonitor.smdtv.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.eqmonitor.smdtv.domain.Smdtv2;
import com.ruoyi.eqmonitor.smdtv.mapper.SmregisterMapper;
import com.ruoyi.eqmonitor.smdtv.service.ISmdtv2Service;
import com.ruoyi.eqmonitor.smdtv.mapper.Smdtv2Mapper;
import com.ruoyi.eqmonitor.utils.Constant;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description 针对表【smdtv_2】的数据库操作Service实现
 * @createDate 2022-12-05 14:29:41
 */
@Service
public class Smdtv2ServiceImpl extends ServiceImpl<Smdtv2Mapper, Smdtv2>
        implements ISmdtv2Service {

    @Resource
    private Smdtv2Mapper smdtv2Mapper;

    @Resource
    private SmregisterMapper smregisterMapper;

    @Override
    public List<Smdtv2> getAll() {
        return smdtv2Mapper.getAll(smregisterMapper.getTableNameByDatasetName(Constant.Smregister.SMDTV_2.getName()));
    }
}




